/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package eserciziowordnet;

import rita.wordnet.RiWordnet;

/**
 *
 * @author gush
 */
public class StemsFromWord {
    String word;
    String[] wtype;
    String[] stems;
    RiWordnet rw;

    public StemsFromWord(String word) {
        this.word = word;
        rw = new RiWordnet();
        wtype = rw.getPos(word);
    }

    public String[] getStemsByType(String wtype) {
        return rw.getStems(word, wtype);
    }

    public String[] getWtype() {
        return wtype;
    }
   
}
